//
//  LogTags.swift
//  
//
//  Created by bo wang on 2021/4/7.
//  Copyright © 2021 wangbo. All rights reserved.
//

import Foundation

/// 日志的tag。
struct LogTag: RawRepresentable, Hashable, Equatable {
    init(_ rawValue: String) {
        self.rawValue = rawValue
    }
    
    init(rawValue: String) {
        self.rawValue = rawValue
    }
    var rawValue: String
}

/// 可在任意其他文件中使用 LogTag 扩展，定义新的 tag
extension LogTag {
    /// 通用
    static let `default` = LogTag("Default")
    
    /// 推送相关
    static let push = LogTag("Push")
    
    /// 登录相关
    static let login = LogTag("Login")
    
    /// 设置相关
    static let setting = LogTag("Setting")
    
    /// 分享相关
    static let share = LogTag("Share")
    
    /// Webview
    static let webview = LogTag("Webview")
}
